package com.edu.mapper;

import com.edu.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface  BookMapper {
    int insertBook(Book book);
    int deleteBook(int bookId);
    int updateBookPrice(@Param("bookId") int bookId, @Param("bookPrice")double bookPrice);
    List<Book> selectBookByType(String bookType);
    Book selectBook(Book book);
    List<Book> selectBookByPrice(@Param("minPrice")double minPrice,@Param("maxPrice")double maxPrice);
    List<Book> selectBooks(@Param("type")String type,@Param("minPrice")double minPrice,@Param("maxPrice")double maxPrice);
}
